<?php
/**
 * @version		$Id: modules.php 8255 2007-07-30 23:37:23Z jinx $
 * @package		Joomla
 * @copyright	Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

function modChrome_notitle($module, &$params, &$attribs)
{
	if (!empty ($module->content)) : ?>
		<div class="moduletable<?php echo $params->get('moduleclass_sfx'); ?>">
			<?php echo $module->content; ?>
		</div>
	<?php endif;
}
function modChrome_mfirst($module, &$params, &$attribs){
	if (!empty ($module->content)) : ?>
		<div id="first_module">
			<div class="ft_module">
				<div class="ft_module_r">
					<div class="ft_module_header">
						<div class="ft_module_header_l">
							<div class="ft_module_header_r">
							</div>
						</div>
						<div class="ft_module_inner">
							<div class="header">
							<?php if($params->get('link_module')){ ?>
								<a href="<?php echo $params->get('link_module'); ?>"><h3><?php echo $module->title; ?></h3></a>
							<?php }else{?>
								<h3><?php echo $module->title; ?></h3>
							<?php }?>
							</div>
							<div class="ft_content"><?php echo $module->content; ?></div>
						</div>
					</div>	
				</div>	
				<div class="ft_module_footer">
					<div class="ft_module_footer_l">
						<div class="ft_module_footer_r">
						</div>
					</div>
				</div>
			</div>
		</div>
	<?php endif;
}
function modChrome_msecond($module, &$params, &$attribs){
	if (!empty ($module->content)) : ?>
		<div id="second_module">
			<div class="second_module_left">				
				<div class="second_module_right">
					<div class="sd_module_br">
						<div class="sd_module_bl">					
							<div class="sd_module_tr">	
								<div class="sd_module_tl">							
									<div class="sd_module_inner">
										<div class="header" style="padding-top:10px;">
										<?php if($params->get('link_module')){ ?>
											<a href="<?php echo $params->get('link_module'); ?>"><h3><?php echo $module->title; ?></h3></a>
										<?php }else{?>
											<h3><?php echo $module->title; ?></h3>
										<?php }?>
										</div>
										<div class="sd_content"><?php echo $module->content; ?></div>
									</div>							
								</div>						
							</div>					
						</div>				
					</div>
				</div>
			</div>	
			<div style="clear:both"></div>	
		</div>
	<?php endif;
}
?>